//
//  ADRollingView.h
//  ADRollingView
//
//  Created by 美鑫科技 on 16/6/21.
//  Copyright © 2016年 MorpLCP. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ADRollingView;

@protocol ADRollingViewDelegate <NSObject>

@optional
- (void)rollingView:(ADRollingView *)rollingView didSelectIndex:(NSInteger)index;

@end

@interface ADRollingView : UIView

@property (nonatomic, assign) id<ADRollingViewDelegate> delegate;

/**
 *  广告标题初始化
 *
 *  @param titles 标题数组
 *
 *  @return instancetype
 */
- (instancetype)initWithTitles:(NSArray *)titles Frame:(CGRect)frame;

/**
 *  带图标初始化
 *
 *  @param icons  图标数组
 *  @param titles 标题数组
 *
 *  @return instancetype
 */
- (instancetype)initWithIcons:(NSArray *)icons Titles:(NSArray *)titles Frame:(CGRect)frame;

@end
